|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfurny.entities.Tag
@Entity public class Tag
A tag that describes a furniture annotation. This is a value object that is mapped by hibernate to a relational database.
Field Summary | |
---|---|
private long |
id
|
private java.lang.String |
name
|
private TagType |
type
|
Constructor Summary | |
---|---|
private |
Tag()
Private constructor. |
|
Tag(TagType type,
java.lang.String name)
Constructor that creates a tag with type and name. |
Method Summary | |
---|---|
int |
compareTo(Tag o)
|
boolean |
equals(java.lang.Object obj)
|
long |
getId()
Getter for the id. |
java.lang.String |
getName()
Getter for the name. |
TagType |
getType()
Getter for the type. |
int |
hashCode()
|
private void |
setId(java.lang.Long id)
Private setter for the id. |
void |
setName(java.lang.String name)
Setter for the name. |
void |
setType(TagType type)
Setter for the type. |
java.lang.String |
toString()
|
static Tag |
valueOf(java.lang.String tagName)
Factory method to parse a tag from a String. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long id
private java.lang.String name
private TagType type
Constructor Detail |
---|
private Tag()
public Tag(TagType type, java.lang.String name)
type
- The type of the tagname
- The name of the tagMethod Detail |
---|
public long getId()
private void setId(java.lang.Long id)
id
- The id.public TagType getType()
public void setType(TagType type)
type
- The type.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name.public int compareTo(Tag o)
compareTo
in interface java.lang.Comparable<Tag>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Tag valueOf(java.lang.String tagName)
tagName
- String to parse.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |